package com.portletinhell.modell;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.GenerationType;
import java.io.Serializable;
/**
 *
 * @author Andrey
 */
@Entity
@Table(name = "Phrases")
public class Phrase implements Serializable{

    
    public Phrase() {
    }
    public Phrase(String prase) {
        this.prase = prase;        
    }

    public Phrase(Long Id, String prase) {
        this.Id = Id;
        this.prase = prase;
    }
   
    @Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE)
    private long Id;
    private String prase;

    public Long getId() {
        return Id;
    }

    public void setId(Long Id) {
        this.Id = Id;
    }

    public String getPrase() {
        return prase;
    }

    public void setPrase(String prase) {
        this.prase = prase;
    }
    
}
